package com.gugee.ins.common.model.mysql;

import lombok.Data;
import org.springframework.data.annotation.Id;

/**
 * base model
 * @author Huangxin
 */
@Data
public class BaseModel {
    @Id
    private long id;
    private long createTime;

    public void generator(long currentTimeSecond) {
        this.setCreateTime(currentTimeSecond);
    }
}
